import request from '@/utils/request';
export async function query() {
  return request('/api/users');
}

/**
 * 获取当前的用户信息
 */
export async function queryCurrent() {
  return request(`/me`);
}

/**
 * 退出登录
 */
export async function adminLogut(){
  return request(`/logout`);
}


export async function queryNotices() {
  return request('/api/notices');
}

/***
 * 刷新token
 * @returns {Promise<any>}
 */
export async function refreshToken() {
  return request('/refresh')
}
